FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/node:22-alpine AS build-stage
WORKDIR /app
COPY package*.json ./
RUN npm cache clean --force
RUN npm install --registry=https://registry.npmmirror.com
COPY . .
EXPOSE 8001
CMD ["npm", "run", "dev"]
